/*
 * @Author       : 哈喽 1599321283@qq.com
 * @Date         : 2025-02-25 17:53
 * @LastEditors  : 哈喽 1599321283@qq.com
 * @LastEditTime : 2025-03-16 23:05
 * @FilePath     : /练习/aaa/src/router/routes.ts
 * @Description  : 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author       : 哈喽 1599321283@qq.com
 * @Date         : 2025-02-25 17:53
 * @LastEditors  : 哈喽 1599321283@qq.com
 * @LastEditTime : 2025-03-16 23:01
 * @FilePath     : /练习/aaa/src/router/routes.ts
 * @Description  : 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Layout from "@/layout/index.vue";
import type { RouteRecordRaw } from "vue-router";
import Home from "@/views/home/index.vue";
import Fortune from "@/views/fortune/index.vue";
import BaZi from "@/views/fortune/bazi.vue";
// import Login from "@/views/fortune/login.vue";
import Tarot from "@/views/fortune/tarot.vue";
import FortuneResult from "@/views/fortune/result.vue";
import Membership from "@/views/membership/index.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "root",
    component: Layout,
    redirect: { name: "Fortune" },
    children: [
      {
        path: "fortune",
        name: "Fortune",
        component: () => import("@/views/fortune/index.vue"),
        meta: {
          title: "天机罗盘",
        },
      },
      {
        path: "fortune/tarot",
        name: "Tarot",
        component: Tarot,
        meta: {
          title: "塔罗占卜",
        },
      },
      {
        path: "fortune/bazi",
        name: "BaZi",
        component: BaZi,
        meta: {
          title: "八字命盘",
          noCache: true,
        },
      },

      // {
      //   path: "login",
      //   name: "Login",
      //   component: Login,
      //   meta: {
      //     title: "登录",
      //     noCache: true,
      //   },
      // },

      {
        path: "fortune/result",
        name: "FortuneResult",
        component: FortuneResult,
        meta: {
          title: "算命结果",
          noCache: true,
        },
      },
      {
        path: "membership",
        name: "Membership",
        component: Membership,
        meta: {
          title: "会员中心",
        },
      },
    ],
  },
];

export default routes;
